package pl.edu.pw.stud.ltrzaska.policy.entity;

import java.io.Serializable;
import java.util.ArrayList;

import pl.edu.pw.stud.ltrzaska.policy.entity.iface.IFilesystemParent;

public class Filesystem extends FilesystemObject implements IFilesystemParent, Serializable {
	protected static final long serialVersionUID = 422354486041732727L;
	protected ArrayList<FilesystemObject> children;

	public Filesystem() {
		super();
	}

	public ArrayList<FilesystemObject> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<FilesystemObject> children) {
		this.children = children;
	}

	public boolean hasChildren() {
		return (this.children != null && this.children.size() > 0);
	}
}
